package net.sansi.v3correctserver.service.v3serverapi;

import com.dtflys.forest.annotation.*;
import net.sansi.v3correctserver.dto.v3serverapi.V3ServerApiBrightnessDto;

/**
 * v3-server 的 brightness api接口
 */
@BaseRequest(
        baseURL = "#{correct.v3-server.host}",
        interceptor = V3ServerApiInterceptor.class
)
public interface V3ServerBrightnessApi {

    @Get("/screens/{screenId}/brightMethod")
    V3ServerApiBrightnessDto.brightMethod brightMethod(@Body("screenId") String screenId);

    @Put("/screens/{screenId}/brightMethod")
    V3ServerApiBrightnessDto.updateResp brightMethodUpdate(@Body("screenId") String screenId, @JSONBody V3ServerApiBrightnessDto.brightMethod data);

    @Get("/screens/{screenId}/brightness")
    V3ServerApiBrightnessDto.bright bright(@Body("screenId") String screenId);

    @Put("/screens/{screenId}/brightness")
    // V3ServerApiBrightnessDto.updateResp brightnessUpdate(@Body("screenId") String screenId, @Body V3ServerApiBrightnessDto.brightness data);
    V3ServerApiBrightnessDto.updateResp brightUpdate(@Body("screenId") String screenId, @JSONBody V3ServerApiBrightnessDto.bright data);

    @Get("/screens/{screenId}/brightCorrection")
    V3ServerApiBrightnessDto.brightCorrection brightCorrect(@Body("screenId") String screenId);

    @Put("/screens/{screenId}/brightCorrection")
    V3ServerApiBrightnessDto.updateResp brightCorrectUpdate(@Body("screenId") String screenId, @JSONBody V3ServerApiBrightnessDto.brightCorrection data);
}
